package news.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/*
 * 新闻 实体�?
 * @author  
 */
public class News implements Serializable {

	private static final long serialVersionUID = 8456547789761324251L;
	private int nid;// 新闻编号
	private int ntid;// 种类编号
	private List<Comment> comments;// 评论
	private String ntitle;// 标题
	private String nauthor;// 作者
	private Date ncreatedate;// 发布时间
	private String npicpath;// 图片路径
	private String ncontent;// 新闻内容
	private Date nmodifydate;// 修改时间
	private String nsummary;// 新闻摘要

	public News(int nid, int ntid, List<Comment> comments, String ntitle,
			String nauthor, Date ncreatedate, String npicpath, String ncontent,
			Date nmodifydate, String nsummary) {
		super();
		this.nid = nid;
		this.ntid = ntid;
		this.comments = comments;
		this.ntitle = ntitle;
		this.nauthor = nauthor;
		this.ncreatedate = ncreatedate;
		this.npicpath = npicpath;
		this.ncontent = ncontent;
		this.nmodifydate = nmodifydate;
		this.nsummary = nsummary;
	}

	public News() {

	}

	public int getNid() {
		return nid;
	}

	public void setNid(int nid) {
		this.nid = nid;
	}

	public int getNtid() {
		return ntid;
	}

	public void setNtid(int ntid) {
		this.ntid = ntid;
	}

	public String getNtitle() {
		return ntitle;
	}

	public void setNtitle(String ntitle) {
		this.ntitle = ntitle;
	}

	public String getNauthor() {
		return nauthor;
	}

	public void setNauthor(String nauthor) {
		this.nauthor = nauthor;
	}

	public Date getNcreatedate() {
		return ncreatedate;
	}

	public void setNcreatedate(Date ncreatedate) {
		this.ncreatedate = ncreatedate;
	}

	public String getNpicpath() {
		return npicpath;
	}

	public void setNpicpath(String npicpath) {
		this.npicpath = npicpath;
	}

	public String getNcontent() {
		return ncontent;
	}

	public void setNcontent(String ncontent) {
		this.ncontent = ncontent;
	}

	public Date getNmodifydate() {
		return nmodifydate;
	}

	public void setNmodifydate(Date nmodifydate) {
		this.nmodifydate = nmodifydate;
	}

	public String getNsummary() {
		return nsummary;
	}

	public void setNsummary(String nsummary) {
		this.nsummary = nsummary;
	}

	public List<Comment> getComments() {
		return comments;
	}

	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}

	@Override
	public String toString() {
		return "News [nid=" + nid + ", ntid=" + ntid + ", comments=" + comments
				+ ", ntitle=" + ntitle + ", nauthor=" + nauthor
				+ ", ncreatedate=" + ncreatedate + ", npicpath=" + npicpath
				+ ", ncontent=" + ncontent + ", nmodifydate=" + nmodifydate
				+ ", nsummary=" + nsummary + "]";
	}

}
